﻿// My methods here.
//-----------------------------------------------------------------------
// <Copyright file=GroupNews company=DHPD>
// Copyright (c) DHPD Corporation (http://dhpd.edu.vn). All rights reserved.
// </copyright>
// <author>HP</author>
//-----------------------------------------------------------------------


using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;
using KM.Models;

namespace KM.BUS
{
    /// <summary>
    /// This is busGroupNews class
    /// </summary>

    public class busGroupNews
    {
        public busGroupNews()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public List<entGroupNews> getAllByParentId(int Id)
        {
            return new datGroupNews().getAllByParentId(Id);
        }
        public void createEdit(entGroupNews entGN)
        {
            datGroupNews datGN = new datGroupNews();
            datGN.createEdit(entGN);
        }
        public List<entGroupNews> getAll()
        {
            datGroupNews datGN = new datGroupNews();
            List<entGroupNews> lst = new List<entGroupNews>();
            lst = datGN.getAll();
            return lst;
        }
        public entGroupNews getInfo(int Id)
        {
            datGroupNews datGN = new datGroupNews();
            entGroupNews entGNNew = new entGroupNews();
            entGNNew = datGN.getInfo(Id);
            return entGNNew;
        }
        public bool delete(int Id)
        {
            datGroupNews datGN = new datGroupNews();
            datGN.delete(Id);
            return true;
        }
    }
}
